W13. Transformations and Quadrics
1. Theory
1.1 Second Order Surfaces in 3D (Quadrics)
Quadric surfaces are three-dimensional analogues of conic sections. Just as conic sections (circles, ellipses, parabolas, and hyperbolas) are defined by second-degree polynomial equations in 2D, quadric surfaces are defined by second-degree polynomial equations in three variables
1.1.1 From 2D Conics to 3D Surfaces
The transition from 2D curves to 3D surfaces follows a natural principle: we extend curves by rotating them around one of their axes of symmetry.

The correspondence between 2D conics and their 3D extensions:
- Circle → Sphere: A circle rotated around any diameter creates a sphere
- Ellipse → Ellipsoid: An ellipse rotated around one of its axes creates an ellipsoid
- Parabola → Paraboloid: A parabola rotated around its axis of symmetry creates a paraboloid
- Hyperbola → Hyperboloid: A hyperbola rotated around its axis creates a hyperboloid
1.1.2 Types of Quadric Surfaces
Sphere

A sphere is the set of all points in space equidistant from a fixed point called the center.
- Standard equation:
(centered at origin with radius ) - General equation:
(centered at ) - Expanded form:
Ellipsoid

An ellipsoid is a “stretched” sphere where the scaling factors along each axis may differ.
- Standard equation:
- When
, the ellipsoid becomes a sphere - The parameters
, , and are the semi-axes along the , , and directions respectively
Elliptic Paraboloid

An elliptic paraboloid is a bowl-shaped surface (like satellite dishes and headlight reflectors).
- Standard equation:
- Cross-sections parallel to the
-plane are ellipses - Cross-sections parallel to the
-plane or -plane are parabolas - The vertex is at the origin, and the surface opens upward (or downward if
is negative)
Hyperbolic Paraboloid

A hyperbolic paraboloid is a saddle-shaped surface.
- Standard equation:
- Cross-sections parallel to the
-plane are hyperbolas - Cross-sections parallel to the
-plane are upward-opening parabolas - Cross-sections parallel to the
-plane are downward-opening parabolas
Hyperboloid of One Sheet

A hyperboloid of one sheet resembles an hourglass or cooling tower shape — a single connected surface.
- Standard equation:
- Cross-sections parallel to the
-plane are ellipses - The surface is connected and extends infinitely
Hyperboloid of Two Sheets

A hyperboloid of two sheets consists of two separate bowl-shaped surfaces facing away from each other.
- Standard equation:
- Or equivalently:
- The two sheets are separated by a gap
Cone
A cone is a surface formed by all lines passing through a fixed point (vertex) and intersecting a curve (the directrix).
- Circular cone equation:
- Cross-sections parallel to the
-plane are circles - The vertex is at the origin
- A cone has two nappes: upper (
) and lower ( )
1.1.3 Identifying Quadric Surfaces
To identify a quadric surface from a general equation:
- Complete the square for each variable if necessary
- Rearrange to standard form
- Compare with standard equations to identify the type
Key identification rules:
- All positive terms, equals constant: Ellipsoid (or sphere if coefficients are equal)
- Two positive, one negative, equals positive constant: Hyperboloid of one sheet
- Two positive, one negative, equals negative constant: Hyperboloid of two sheets
- Two squared terms equal to a linear term: Paraboloid (elliptic or hyperbolic)
1.1.4 Real-World Applications
- Sphere: Planets, balls, bubbles
- Ellipsoid: Earth’s shape (geoid), some sports balls
- Paraboloid: Satellite dishes, headlights, telescope mirrors
- Hyperboloid: Cooling towers, nuclear reactor structures, architecture
1.2 Linear Transformations
1.2.1 Definition of Linear Transformation
A linear transformation is a special type of function between vector spaces that preserves the fundamental operations of vector addition and scalar multiplication.

Formal Definition: A function
- Additivity:
- Homogeneity:
Equivalent Condition:
This means linear transformations preserve linear combinations.
1.2.2 Properties of Linear Transformations
If
— the zero vector always maps to the zero vector
Important: If
1.2.3 Verifying Linearity
To check if a transformation is linear, you can:
- Method 1: Verify both additivity and homogeneity properties directly
- Method 2: Check if
for arbitrary vectors and scalars - Quick Test: If
, then is NOT linear
Common non-linear patterns:
- Adding a constant vector:
(translation) - Products of variables:
- Non-linear functions:
,
1.3 Matrix Representation
1.3.1 The Standard Matrix
Every linear transformation
Constructing the Standard Matrix: The standard matrix
where
For example, in
In
, ,
1.3.2 Common Linear Transformations in
Rotation by angle
Scaling:
where
Reflection about the x-axis:
Reflection about the y-axis:
Reflection about the line
Horizontal Shear:
Projection onto the x-axis:
1.3.3 Projection Transformations
A projection transformation maps vectors onto a subspace (like a line or plane).
Projection onto the xy-plane in
Properties of projection transformations:
- Idempotent: Applying the projection twice gives the same result as applying it once:
- Not invertible: Many vectors map to the same projection, so no inverse exists
- Rank: Equals the dimension of the subspace projected onto
- Nullity: Equals the dimension “lost” in the projection
1.4 Composition of Transformations
1.4.1 Composing Linear Transformations
If
Key insight: The matrix of the composition is the product of the individual matrices, in reverse order.
Important: Order matters! In general,
means: first apply , then apply — matrix is means: first apply , then apply — matrix is
1.5 Kernel and Image
1.5.1 The Kernel (Null Space)
The kernel (or null space) of a linear transformation
Properties:
- The kernel is a subspace of the domain
- Vectors in the kernel contain no information in the output
- The dimension of the kernel is called the nullity:
1.5.2 The Image (Range)
The image (or range) of a linear transformation
Properties:
- The image is a subspace of the codomain
- It represents all vectors we can “reach” using
- The dimension of the image is called the rank:
- The image equals the column space of the transformation matrix
1.5.3 The Rank-Nullity Theorem
For any linear transformation
Or equivalently:
Interpretation: The dimension of the domain is partitioned into:
- The dimension “collapsed” to zero (nullity) — information lost
- The dimension “preserved” in the output (rank) — information kept
Applications:
- If
, the equation has either zero or infinitely many solutions is one-to-one (injective) if and only if is onto (surjective) if and only if
1.6 Inverse Transformations
1.6.1 When is a Transformation Invertible?
A linear transformation
Conditions for invertibility:
- The transformation must be from
to (same dimension) - The matrix must be square
- The determinant must be non-zero:
- The transformation must be bijective (both injective and surjective)
For a
1.7 Applications
1.7.1 Computer Graphics
Linear transformations are fundamental in computer graphics:
- Rotation, scaling, and translation of objects
- 3D to 2D projection for rendering
- Image transformations and manipulations
To apply multiple transformations to an object, multiply the matrices in reverse order of application, then apply the resulting matrix to all vertices.
1.7.2 Data Science and Machine Learning
- Principal Component Analysis (PCA): Projects data onto principal directions
- Linear regression transformations
- Feature scaling and normalization
1.7.3 Physics and Engineering
- Coordinate system transformations
- Stress-strain relationships
- Electrical circuit analysis
2. Definitions
- Quadric Surface: A three-dimensional surface defined by a second-degree polynomial equation in
, , and . - Sphere: The set of all points in space equidistant from a fixed center point.
- Ellipsoid: A quadric surface where all cross-sections are ellipses (or circles); a “stretched” sphere.
- Elliptic Paraboloid: A bowl-shaped quadric surface with elliptical cross-sections parallel to the base plane.
- Hyperbolic Paraboloid: A saddle-shaped quadric surface with hyperbolic cross-sections.
- Hyperboloid of One Sheet: A connected quadric surface resembling an hourglass shape.
- Hyperboloid of Two Sheets: A quadric surface consisting of two separate components.
- Cone: A surface formed by all lines passing through a fixed vertex and intersecting a base curve.
- Linear Transformation: A function
that preserves vector addition and scalar multiplication. - Standard Matrix: The unique matrix
representing a linear transformation such that . - Standard Basis Vectors: The unit vectors
with 1 in one position and 0 elsewhere. - Kernel (Null Space): The set of all vectors mapped to zero by a linear transformation:
. - Image (Range): The set of all possible outputs of a linear transformation:
. - Nullity: The dimension of the kernel of a linear transformation.
- Rank: The dimension of the image of a linear transformation.
- Composition: The application of one transformation followed by another;
. - Invertible Transformation: A transformation with an inverse; requires
for matrix representation. - Projection: A transformation that maps vectors onto a subspace, characterized by being idempotent (
).
3. Formulas
- Sphere (centered at origin):
- Sphere (general center):
- Ellipsoid:
- Elliptic Paraboloid:
- Hyperbolic Paraboloid:
- Hyperboloid of One Sheet:
- Hyperboloid of Two Sheets:
- Circular Cone:
- Standard Matrix Construction:
- Rotation Matrix (2D, counterclockwise by
): - Scaling Matrix (2D):
- Reflection about x-axis:
- Reflection about y-axis:
- Reflection about
: - Shear Matrix (horizontal):
- Projection onto xy-plane:
- Projection onto x-axis (2D):
- Composition of Transformations:
where has matrix and has matrix - Rank-Nullity Theorem:
- 2×2 Matrix Inverse:
for - Perpendicular Distance from Point to Plane:
for plane
4. Practice
4.1. Identify Quadric Surface Type (Lab 9, Task 1a)
Write the standard equation and determine the type of quadric surface:
Click to see the solution
Key Concept: Complete the square to transform the equation into standard form.
- Rearrange and complete the square for
: - Solve for
: - Identify the surface: This is a difference of squares equal to a linear term in
.
Answer: Standard form:
4.2. Identify Quadric Surface Type (Lab 9, Task 1b)
Write the standard equation and determine the type of quadric surface:
Click to see the solution
Key Concept: Rearrange to standard form and identify the sign pattern.
- Rearrange the equation:
- Divide by
to get on the right: - Identify: Two positive squared terms and one negative squared term equal to
.
Answer: Standard form:
4.3. Identify Quadric Surface Type (Lab 9, Task 1c)
Write the standard equation and determine the type of quadric surface:
Click to see the solution
Key Concept: Recognize the sum of squares pattern.
- Rearrange:
- Identify: This is a sum of two squared terms equal to a linear term. The vertex is shifted to
.
Answer: Standard form:
4.4. Identify Quadric Surface Type (Lab 9, Task 1d)
Write the standard equation and determine the type of quadric surface:
Click to see the solution
Key Concept: Complete the square for all three variables.
- Group terms and complete the square:
- Complete each square:
- Substitute back:
- Divide by 22:
Answer: Standard form:
4.5. Identify Quadric Surface Type (Lab 9, Task 1e)
Write the standard equation and determine the type of quadric surface:
Click to see the solution
Key Concept: Divide to get 1 on the right side.
- Divide both sides by 36:
- Identify: All positive squared terms equal to 1.
Answer: Standard form:
4.6. Identify Quadric Surface Type (Lab 9, Task 1f)
Write the standard equation and determine the type of quadric surface:
Click to see the solution
Key Concept: Recognize the paraboloid pattern.
Rearrange:
Or equivalently:
Identify: Sum of squared terms equal to a linear expression — this is a paraboloid opening in the negative
direction.
Answer: Standard form:
4.7. Apply Linear Transformation Using Given Values (Lab 9, Task 1 - Linear Transformations)
Let
Find
Click to see the solution
Key Concept: Linear transformations preserve linear combinations. If we can express the input as a linear combination of vectors whose images we know, we can find the output.
Express
as a linear combination:We need to find
such that:Solve the system:
From
:Verify:
✓So:
Apply linearity:
Answer:
4.8. Find Equation of a Sphere Through Two Points (Lab 9, Task 2)
Find the equation of the sphere which passes through the points
Click to see the solution
Key Concept: If the line joining two points is a diameter, then the center is the midpoint, and the radius is half the distance between the points.
- Find the center (midpoint of the diameter):
- Find the radius (half the distance between points):
- Write the standard equation:
- Expand to general form (optional):
Answer:
4.9. Verify Matrix Transformation (Lab 9, Task 2 - Linear Transformations)
Is the following
Click to see the solution
Key Concept: A transformation is a matrix transformation if there exists a matrix
Try to find the matrix:
We need
such that:Construct
by analyzing each output component:- Row 1:
- Row 2:
- Row 3:
- Row 4:
- Row 1:
The matrix is:
Verify:
✓
Answer: Yes,
4.10. Tangent Plane to a Sphere (Lab 9, Task 3)
Show that the plane
Click to see the solution
Key Concept: A plane is tangent to a sphere if and only if the perpendicular distance from the center to the plane equals the radius.
Find the center and radius of the sphere:
Rewrite:
Complete the squares:
Center:
, Radius:Calculate perpendicular distance from center to plane:
Using the distance formula for point
to plane :Since
, the plane is tangent to the sphere. ✓Find the point of contact:
The point of contact lies on the line from the center perpendicular to the plane.
Direction of normal to plane:
Parametric equations from center
:Point on line:
Find
where this point lies on the plane:Calculate the point of contact:
Answer: The plane is tangent to the sphere. The point of contact is
4.11. Check if Translation is Linear (Lab 9, Task 3 - Linear Transformations)
Consider
Click to see the solution
Key Concept: A linear transformation must map the zero vector to the zero vector:
- Check
: - Compare to required condition:
- Conclusion: This violates the fundamental property
.
Answer: No,
4.12. Find Equation of a Cone (Lab 9, Task 4)
Find the equation of the cone with its vertex at
Click to see the solution
Key Concept: A cone is generated by lines (generators) passing through the vertex and intersecting a given curve (directrix).
Set up the generator line:
Let
be the vertex and be any point on the cone surface.The parametric equation of line
:Find where the generator intersects plane
:When
:So:
andApply the condition that this point lies on circle
:Eliminate parameters using the line equation:
From the parametric equations:
andSubstituting:
Answer:
4.13. Check if Product is Linear (Lab 9, Task 4 - Linear Transformations)
Let
Click to see the solution
Key Concept: If
Find the candidate matrix by applying
to standard basis vectors:Candidate matrix:
Verify if
for all :But:
Compare:
The first components don’t match (unless
).
Answer: No,
4.14. Find Equation of Right Circular Cone (Lab 9, Task 5)
Find the equation of the right circular cone whose vertex is at the origin, whose axis is the line
Click to see the solution
Key Concept: For a right circular cone, every point on the surface makes the same angle (half the vertical angle) with the axis.
Find direction cosines of the axis:
Direction ratios:
Magnitude:
Direction cosines:
Set up the cone condition:
Let
be any point on the cone surface.Let
be the foot of perpendicular from to the axis.The half-angle is
.From trigonometry:
Calculate
and : = Projection of onto axis direction:Apply the angle condition:
Square both sides:
Expand and simplify:
Answer:
4.15. Composition of 2D Transformations (Lab 9, Task 5 - Linear Transformations)
A unit square centered at the origin has initial vertices
Click to see the solution
Key Concept: For composition, multiply matrices in reverse order of application. To scale a unit square to side length 4, use scaling factor 4.
Rotation matrix (30° counterclockwise):
Scaling matrix (factor 4):
Composite transformation (scale after rotate):
Apply to each vertex:
: : : :
Answer: The composite matrix is
Final vertices:
4.16. Verify Linearity of Transformations (Tutorial 9, Task 1)
Determine whether the following functions are linear transformations:
defined by defined by defined by
Click to see the solution
Key Concept: Check if
(a)
Let
Answer (a): Yes,
(b)
Quick counterexample:
Since
Answer (b): No,
(c)
This is a linear combination of coordinates with no constant terms or products.
Standard matrix:
Answer (c): Yes,
4.17. Reflection Matrix (Tutorial 9, Task 1)
Find the matrix for reflection about the line
Click to see the solution
Key Concept: Apply the reflection to standard basis vectors.
Reflect
about :Reflection swaps coordinates:
Reflect
about :Form the matrix:
Answer:
4.18. Find Standard Matrix (Tutorial 9, Task 2)
Find the standard matrix representation for each linear transformation:
defined by defined byRotation by
counterclockwise in
Click to see the solution
Key Concept:
(a)
Answer (a):
(b)
Answer (b):
(c) Rotation by
Answer (c):
4.19. Non-Linearity of Translation (Tutorial 9, Task 2)
Show that
Click to see the solution
Key Concept: Check if
Answer:
4.20. Composition of Transformations (Tutorial 9, Task 3)
Let
Find the standard matrices for
andFind the matrix for
(apply then )Find the matrix for
(apply then )Are these compositions the same?
Click to see the solution
(a) Standard matrices:
Rotation 90° counterclockwise:
Reflection about x-axis:
(b)
Matrix:
(c)
Matrix:
(d) Comparison:
Answer: No,
4.21. Apply Matrix Transformation (Tutorial 9, Task 3)
For
Click to see the solution
Answer:
4.22. Find Kernel and Range (Tutorial 9, Task 4)
For the linear transformation
Find the kernel of
Find the range of
Verify the Rank-Nullity Theorem
Click to see the solution
(a) Kernel: Solve
Row reduce:
One equation:
Kernel vectors:
Basis for
(b) Range: Column space of
Columns:
Note:
All columns are multiples of
Basis for
(c) Rank-Nullity Theorem:
Answer: Kernel basis:
4.23. Scaling Transformation (Tutorial 9, Task 4)
Determine if the transformation that doubles all coordinates is linear.
Click to see the solution
Key Concept:
The transformation can be written as:
For any vectors
Matrix representation:
Answer: Yes,
4.24. Inverse Transformations (Tutorial 9, Task 5)
Determine which of the following linear transformations are invertible, and find the inverse when it exists:
with matrix with matrix projection onto x-axis
Click to see the solution
(a)
Invertible!
(b)
This is a
Not invertible — a transformation from
(c) Projection onto x-axis
Not invertible — many vectors map to the same projection:
The transformation is not one-to-one.
Answer:
Invertible,
Not invertible (not square)
Not invertible (
, not one-to-one)
4.25. Computer Graphics Application (Tutorial 9, Task 6)
A triangle has vertices at
Rotate
counterclockwiseThen scale by factor 2 in x-direction and 3 in y-direction
Find the final positions of all vertices
Click to see the solution
Key Concept: Build the composite transformation matrix, then apply to each vertex.
Rotation matrix (90° counterclockwise):
Scaling matrix:
Composite transformation (scale after rotate):
Apply to vertices:
Vertex
:Vertex
:Vertex
:
Answer: Final vertices: